package ${serviceUrl};

import ${entityUrl}.${entityName};
import ${commonUrl}.MulTableQuery;
import ${commonUrl}.CommonCurdPageBean;
import com.efast.cafe.framework.service.ICafeService;
import java.util.List;

/**   
 * Copyright: Copyright (c) 2019  ${author} Co. Ltd.
 * filename:${entityName}Service ${createTime}
 * project ${project}  ${version}
 * <p>说明： ${entityComment}服务层</P>
 * version: ${version}
 * @author : ${author}
 * 
 * Modification History:
 * Date         	Author          Version          Description
 *---------------------------------------------------------------*
 * ${createTime}      ${author}    ${version}           initialize
 */
public interface ${entityName}Service extends ICafeService<${entityName}> {

    /**
    * 新增
    * @param ${objectName} 实体类
    */
    void insertOne(${entityName} ${objectName});

    /**
    * 根据ID删除
    * @param ${objectName} 实体类
    */
    void deleteById(${entityName} ${objectName});

    /**
    * 根据ID更新
    * @param ${objectName} 实体类
    */
    void updateById(${entityName} ${objectName});

    /**
    * 根据ID查询
    * @param ${objectName} 实体类
    */
    ${entityName} selectById(${entityName} ${objectName});

    /**
    * 多表分页查询
    * @param queryBean 实体类
    */
    MulTableQuery.Pagination<${entityName}> queryByConditionPage(CommonCurdPageBean<${entityName}> queryBean);

    /**
    * 多表不分页查询
    * @param queryBean 实体类
    */
    List<${entityName}> queryByCondition(${entityName} queryBean);
	
}